public class Generator {

	public static void main(String[] args) {

		String kleinGross = "gross";
	//	for (int i = 0; i < 1000; i++) {
			int y = (int) (Math.random() * 100);
			if (y < 50) {
				y = 1;
			} else {
				y = 0;
			}
			// public resti = new Restaurant();

			if (kleinGross == "klein") {
				String[] restaurantklein = new String[5];
				
				restaurantklein[0] = "Mosers";
				restaurantklein[1] = "Schmatz";
				restaurantklein[2] = "Jung";
				restaurantklein[3] = "2te Akt";
				restaurantklein[4] = "komische Inder";
				int x1 = (int) (Math.random() * restaurantklein.length);
				System.out.println(restaurantklein[x1]);
			} else if (kleinGross == "gross") {

				String[] restaurantgross = new String[7];
				restaurantgross[0] = "Nachtigall";
				restaurantgross[1] = "Nagasui";
				restaurantgross[2] = "Suan Long";
				restaurantgross[4] = "Don Leone";
				restaurantgross[3] = "Mythos";
				restaurantgross[5] = "Saigon";
				restaurantgross[6] = "Goodmans";
				int x2 = (int) (Math.random() * (restaurantgross.length-1)+ y);
				System.out.println(restaurantgross[x2]);
			}
	//	}
	}

}
